package com.hashimoto.core.remote.client;

public enum ClientType {
	USERS("users"),
	EDGE("edge");
	private String userType;
	
	private ClientType(String userType) {
		this.userType = userType;
	}
	
	public String getUserType() {
		return this.userType;
	}
	
	public static ClientType find(String userType) {
		ClientType[] types = ClientType.values();
		for(ClientType type : types) {
			if(type.userType.equals(userType)) {
				return type;
			}
		}
		return null;
	}
	
	
	
	public static void main(String[] args) {
		ClientType.valueOf("edge");
	}
}
